<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<br>
<h3 class="form-signin-heading">房屋列表</h3>
 <a href="./create" class="btn btn-normal btn-primary">新增</a>
<table class="table table-striped table-hover">
	<thead>
		<tr>
			<th>序号</th>
			<th>房间名称</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${roomList}" var="room" varStatus="status"> 
			<tr>
				<td>${status.index+1}</td>
				<td>${room.name }</td>
				<td>
					<a href="./del/${room.id }" class="btn btn-normal">删除</a>
					<a href="./update/${room.id }" class="btn btn-normal">编辑</a>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
